@extends('backend::layout')
@section('title',$page_title)
@section('content')
    @component('backend::component.tpl_frame')
        @slot('page_title') 币种管理 @endslot
        @slot('icon') hcl-currency-list @endslot
        @slot('class') mb-3 @endslot
        @slot('body_content')
            @foreach($currencies as $item)
                <div class="alert alert-primary mb-2 d-inline-block mw-100">
                    <div class="d-inline-flex justify-content-start align-items-center" style="width: 160px;">
                        <span class="alert-icon mr-05"><i class="hcl hcl-bizhong"></i></span>
                        <a href="javascript:;">
                            <strong>{{$item['title']}}</strong>
                            <span class="text-danger">({{$item['price']}}￥)</span>
                        </a>

                    </div>
                    <div class="d-inline-flex justify-content-end">
                        <button type="button" class="btn btn-xs btn-outline-danger ml-1 modal-box"
                                href="{{route('b_Currency_update',['id'=>$item['id']])}}"
                                data-params='{"title":"编辑{{$item['title']}}","area":"600,400"}'
                        ><i class="hcl hcl-edit"></i></button>
                    </div>
                </div>
            @endforeach
        @endslot
    @endcomponent

    @component('backend::component.tpl_frame')
        @slot('page_title') 变更类型 @endslot
        @slot('icon') hcl-change @endslot
        @slot('class') mb-2 @endslot
        @slot('body_content')
            @foreach($changes as $item)
                <div class="alert alert-primary mb-2 d-inline-block mw-100">
                    <div class="d-inline-flex justify-content-start align-items-center" style="width: 100px;">
                        <span class="alert-icon mr-05"><i class="hcl {{$item->icon}}"></i></span>
                        <a href="javascript:;">
                            <strong>{{$item['title']}}</strong>
                        </a>

                    </div>
                    <div class="d-inline-flex justify-content-end">
                        <button type="button" class="btn btn-xs btn-outline-danger ml-1 modal-box"
                                href="{{route('b_ChangeType_update',['id'=>$item['id']])}}"
                                data-params='{"title":"编辑{{$item['title']}}","area":"600,400"}'
                        ><i class="hcl hcl-edit"></i></button>
                    </div>
                </div>
            @endforeach
        @endslot
    @endcomponent

    @component('backend::component.form.form')
        @slot('page_title') 数据初始化 @endslot
        @slot('formId') init @endslot
        @slot('icon') hcl-process @endslot
        @slot('action') {{route('b_System_initData')}} @endslot
        @component('backend::component.form.form-group')
            @slot('title') 数据类型 @endslot
            <div>
                @component('backend::component.checkbox')
                    @slot('title') 系统数据 @endslot
                    @slot('name') init_data[] @endslot
                    @slot('value') user @endslot
                @endcomponent

{{--                @component('backend::component.checkbox')--}}
{{--                    @slot('title') 充值记录 @endslot--}}
{{--                    @slot('name') init_data[] @endslot--}}
{{--                    @slot('value') rg @endslot--}}
{{--                @endcomponent--}}
            </div>
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 安全密码 @endslot
            @component('backend::component.form.input')
                @slot('name') safe_pwd @endslot
                @slot('type') password @endslot
                @slot('value')  @endslot
            @endcomponent
            @slot('remark') 管理员的安全密码 @endslot
        @endcomponent

        @slot('buttons')
            @component('backend::component.form.button')
                @slot('title') 提交 @endslot
                @slot('params') {"formId":"#init","tips":"此操作会清空数据,请谨慎操作,如果扔坚持操作,后果自行承担!","load":true} @endslot
                @slot('class') btn-min-width ajax-form @endslot
            @endcomponent
            @component('backend::component.form.button')
                @slot('title') 重置 @endslot
                @slot('type') reset @endslot
                @slot('color') danger @endslot
                @slot('class') btn-min-width @endslot
            @endcomponent
        @endslot
    @endcomponent

@endsection